package com.mm.cloud.sys.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mm.cloud.common.core.constant.DSConstants;
import com.mm.cloud.sys.dto.query.QueryDictTypeDTO;
import com.mm.cloud.sys.entity.DictType;
import com.mm.cloud.sys.vo.DictTypeVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 字典类型 Mapper 接口
 * </p>
 *
 * @author mr
 * @since 2022-11-12
 */
@DS(DSConstants.MASTER)
public interface DictTypeMapper extends BaseMapper<DictType> {

    /**
     * 分页查询
     *
     * @param page
     * @param dto
     * @return
     */
    IPage<DictTypeVO> getDecTypeList(@Param("page") Page<DictTypeVO> page, @Param("dto") QueryDictTypeDTO dto);
}
